<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center addappointment_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub addappointment_fd0_0'>
          <view class='flex flex-wrap align-center addappointment_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  addappointment_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='addappointment_fd0_0_c1_c0'>添加预约</text>
          </view>
          <view class='flex flex-wrap align-center justify-end addappointment_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout">
        <view class='flex flex-wrap align-center justify-between addappointment_fd1_0' @tap.stop="handleJumpDiy"
          data-type="navigateTo" :data-url="`/pages/grzx/chooseCur/chooseCur`">
          <view class='flex flex-wrap align-center'>
            <image class='addappointment_fd1_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"165.png"'></image>
            <text class='addappointment_fd1_0_c0_c1'>*</text>
            <text>选择客户</text>
          </view>
          <view class='flex flex-wrap align-center'>
            <view>{{customerinfo.name}}</view>
            <image class='addappointment_fd1_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"11.png"'></image>
          </view>
        </view>
        <view class='flex flex-wrap align-center justify-between addappointment_fd1_0'
          @tap.stop="pickerDiy1719297142345=true">
          <view class='flex flex-wrap align-center'>
            <image class='addappointment_fd1_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"166.png"'></image>
            <text class='addappointment_fd1_0_c0_c1'>*</text>
            <text>试衣间</text>
          </view>
          <view class='flex flex-wrap align-center'>
            <view>{{fittingroom_name}}</view>
            <image class='addappointment_fd1_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"11.png"'></image>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <view class="flex benben-position-layout flex flex-wrap align-center addappointment_flex_2">
        <button class='addappointment_fd2_0'>确定</button>

      </view>
      <view :style="{height: '88rpx'}"></view>
      <!--选择器开始 -->
      <benben-picker ref="benbenWritePickerCodepicker3" :visible.sync="pickerDiy1719297142345"
        :label.sync='fittingroom_name' :value.sync='fittingroom_id' :options='list' mode='selector' :mask-show='true'
        :timeout='true' :picker-height='88' default-type='shiyijianbianhao'
        :default-props='{"label":"name","value":"shiyijianbianhao"}'>
        <template #picker-header>
          <view class='flex flex-wrap align-center justify-between addappointment_picker3_0'>
            <text @tap="$refs.benbenWritePickerCodepicker3.cancel()">取消</text>
            <text>标题</text>
            <text class='addappointment_picker3_0_c2'
              @tap="$refs.benbenWritePickerCodepicker3.pickerConfirm()">确认</text>
          </view>
        </template>
      </benben-picker>
      <!--选择器结束 -->


    </view>
  </page-body>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        "pickerDiy1719297142345": false,
        list: [],
        appointment_date: '', //预约日期
        time_period: '', //预约时间段
        time_str: '', //时间点
        customerinfo_id: '', //客户信
        fittingroom_id: '', //试衣间管理ID
        fittingroom_name: '',
        customerinfo: ''
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      this.getList()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      uni.$on('custoerm', data => {
        this.customerinfo = data
      })
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getList() {
        this.$api.post(global.apiUrls.post666cf0f0a6820).then(res => {
          if (res.data.code == 1) {
            this.list = res.data.data.list
          }
        })
      },
      submit() {

      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .addappointment_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .addappointment_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .addappointment_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .addappointment_fd0_0_c0 {
    width: 120rpx;
  }

  .addappointment_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .addappointment_fd1_0_c1_c0 {
    width: 14rpx;
    height: 26rpx;
  }

  .addappointment_fd1_0_c0_c1 {
    color: var(--benbenFontColor5);
  }

  .addappointment_fd1_0_c0_c0 {
    width: 48rpx;
    height: 48rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .addappointment_fd1_0 {
    background: #FFFFFF;
    border-radius: 24rpx;
    width: 686rpx;
    height: 120rpx;
    line-height: 120rpx;
    margin: 24rpx auto 0rpx auto;
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .addappointment_flex_2 {
    width: 686rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    bottom: calc(40rpx + var(--window-bottom));
    left: 32rpx;
  }

  .addappointment_fd2_0 {
    background: #F9E4C3;
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    width: 686rpx;
    line-height: 88rpx;
    font-size: 28rpx;
    color: var(--benbenFontColor0);
    height: 88rpx;
  }

  .addappointment_picker3_0_c2 {
    color: #4781f5;
  }

  .addappointment_picker3_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
    border-radius: 25rpx 25rpx 0rpx 0rpx;
    background-size: 100% auto !important;
  }
</style>
